import {describe, it, expect} from "@jest/globals"
import { DeepSeek } from "./deepSeek";
import { BaseLLM } from "./baseLLM";

it("_legacystreamComplete should work", async () => {
    const llm:BaseLLM = new DeepSeek("sk-37addc2257584318ba5e300d38da7305", "deepseek-chat", "https://api.deepseek.com/v1/chat/completions");
    const result = llm._legacystreamComplete([{role: "user", content: "你好"}], new AbortController().signal);
    for await (const value of result) {
        console.log(value);
    }
});

